<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Address extends Model
{
    use HasFactory;
    protected $table = 'address';
    public $timestamps = false;

    /**
     * @param $uid
     * @return mixed
     * User: 张浩
     * Date: 2022/11/23
     * Time: 11:06
     * 根据用户id获取用户所有收货数据
     */
    public static function addressUidGet($uid)
    {
        return self::where('address_rid', $uid)->paginate(3)->toArray();
    }
}
